<?php 

namespace app\common\validate\record;

use think\Validate;

class RecordSupplyCard extends Validate 
{ 
    protected $rule = [
        'uid' => 'require',
        'remark' => 'require',
        'supply_day' => 'require',
        'check_work_id' => 'require',
    ];

    protected $message = [
        'uid.require' => '请输入用户ID',
        'remark.require' => '请输入补卡理由',
        'supply_day.require' => '请输入补卡日期',
        'check_work_id.require' => '请输入考勤ID',
    ];

    protected $scene = [
        'edit' => ['uid','remark','supply_card_type','supply_day','examine_admin_name','admin_name','check_work_id','supply_detail','id'],
        'add' => ['uid','remark','supply_card_type','supply_day','examine_admin_name','admin_name','check_work_id','supply_detail'],
    ];

} 
